home *** CD-ROM | disk | FTP | other *** search
/ Dragon Blade - Wrath of Fire (USA) (Press Kit) / Dragon Blade - Wrath of Fire (USA) (Press Kit).bin / pc / main.swf / scripts / DefineSprite_112_button / frame_1 / DoAction.as
Encoding:
Text File  |  2007-01-01  |  956 b   |  38 lines

  1. overSound = new Sound(this);
  2. overSound.attachSound("btnOver");
  3. loadBar_mc._width = 0;
  4. hitVal = 0;
  5. var Plink;
  6. hit_mc.onRollOver = function()
  7. {
  8.    this.colorTo(16770048,0,"easeOutSine");
  9.    name_txt.colorTo(0,0,"easeOutSine");
  10.    arrow_txt.colorTo(16711680,0,"easeOutSine");
  11.    overSound.start();
  12. };
  13. hit_mc.onRollOut = function()
  14. {
  15.    if(hitVal == 0)
  16.    {
  17.       this.colorTo(0,0.4,"easeOutSine");
  18.       name_txt.colorTo(16777215,0.4,"easeOutSine");
  19.    }
  20.    else
  21.    {
  22.       this.colorTo(0,0.4,"easeOutSine");
  23.       name_txt.colorTo(16770048,0.4,"easeOutSine");
  24.    }
  25.    arrow_txt.colorTo(16777215,0.4,"easeOutSine");
  26. };
  27. hit_mc.onRelease = hit_mc.onReleaseOutside = function()
  28. {
  29.    function stall()
  30.    {
  31.       _root.loadImage(PNum);
  32.    }
  33.    _root.downloadCount_var = PNum;
  34.    _root.brandEnabler("button" + PNum + "_mc");
  35.    _root.loadIntoMe_mc.colorTo(0,0.3,"easeInQuad");
  36.    _root.loadIntoMe_mc.onTweenComplete = stall;
  37. };
  38.